package com.itheima.core.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class CenterController {

	// @Autowired
	// private TestTbService testTbService;

	/*
	 * @RequestMapping(value = "/test/index.do") public String index() { TestTb
	 * testTb = new TestTb(); // testTb.setId(1); testTb.setName("库里");
	 * testTb.setBirthday(new Date()); testTbService.insertTestTb(testTb);
	 * System.out.println(); return "index"; }
	 */

	@RequestMapping(value = "/control/index.do")
	public String index() {

		return "index";
	}

	@RequestMapping(value = "/control/top.do")
	public String top() {

		return "top";
	}

	@RequestMapping(value = "/control/main.do")
	public String main() {

		return "main";
	}

	@RequestMapping(value = "/control/left.do")
	public String left() {

		return "left";
	}

	@RequestMapping(value = "/control/right.do")
	public String right() {

		return "right";
	}

	@RequestMapping(value = "/frame/product_main.do")
	public String product_main() {

		return "frame/product_main";
	}

	@RequestMapping(value = "/frame/product_left.do")
	public String product_left() {

		return "frame/product_left";
	}
	
	
	
	
}
